// var circle = require('circle.js');

auto.waitFor()
setScreenMetrics(1080, 1920);

// var tencent_news = require('tencent_news.js');
//toastLog("半径为 4 的圆的面积是 %d", circle.area(4));

toastLog(files.isDir("/sdcard/文件夹/")); //返回false
toastLog(files.isDir("/sdcard/文件.txt")); //返回true

var text = "文件内容";
//写入文件
files.write("/sdcard/1.txt", text);
//用其他应用查看文件
app.viewFile("/sdcard/1.txt");

toastLog(files.read("/sdcard/1.txt"));

engines.myEngine().forceStop();
exit();
